package com.neuedu.web.controller;

import com.neuedu.web.common.BaseMethodController;
import com.neuedu.web.common.PageInfo;
import com.neuedu.web.po.DeptPO;
import com.neuedu.web.po.RegisterPO;
import com.neuedu.web.po.UmsUser;
import com.neuedu.web.service.GuaHaoService;
import com.neuedu.web.utils.BeanConvertUtils;
import com.neuedu.web.utils.ParamUtils;
import com.neuedu.web.vo.DeptVO;

import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.util.List;
import java.util.Map;

/**
 * @author 金山
 * 项目：his-server
 * site: https://blog.fulfill.com.cn
 * 描述
 * @data 2024/11/2813:51
 */

@WebServlet("/guahao/*")
public class GuaHaoController extends BaseMethodController {
    GuaHaoService guaHaoService  = new GuaHaoService();

    private Map initGuahaoPage(HttpServletRequest request , HttpServletResponse response) throws IOException, NoSuchFieldException, InvocationTargetException, NoSuchMethodException, InstantiationException, IllegalAccessException {
        return guaHaoService.initGuahaoPage(request,response);
    }


    /**
     * 根据科室 和  挂号级别  查询 应该有那些医生符合
     * @param request
     * @param response
     * @return
     * @throws IOException
     * @throws NoSuchFieldException
     * @throws InvocationTargetException
     * @throws NoSuchMethodException
     * @throws InstantiationException
     * @throws IllegalAccessException
     */
    private List<UmsUser> getDoctor(HttpServletRequest request , HttpServletResponse response) throws IOException, NoSuchFieldException, InvocationTargetException, NoSuchMethodException, InstantiationException, IllegalAccessException {
        return guaHaoService.getDoctor(request,response);
    }


    /**
     * 挂号
     */

    public boolean guahao(HttpServletRequest request, HttpServletResponse response){

        return guaHaoService.guahao(request,response);
    }


    /**
     * 挂号之后 查询 已挂号列表
     * @param request
     * @param response
     * @return
     * @throws NoSuchFieldException
     * @throws InvocationTargetException
     * @throws NoSuchMethodException
     * @throws InstantiationException
     * @throws IllegalAccessException
     */

    private PageInfo<RegisterPO> page(HttpServletRequest request , HttpServletResponse response) throws IOException, NoSuchFieldException, InvocationTargetException, NoSuchMethodException, InstantiationException, IllegalAccessException {
        return guaHaoService.page(request,response);
    }





    /**
     * 退好
     */

    /**
     * 收费  根据病历号 查询患者 基本表信息、、  检查项目、检验项目
     */
    public Map initFeePage(HttpServletRequest request , HttpServletResponse response) throws Exception {
        return guaHaoService.initFeePage(request,response);
    }


    /**
     * 收费   -- 状态
     * @param request
     * @param response
     * @return
     * @throws Exception
     */

    public boolean fee(HttpServletRequest request , HttpServletResponse response) throws Exception {
        return guaHaoService.fee(request,response);
    }

    /**
     * 退费
     */
}


